package com.gzsxy.esjy.response;

/**
 * 统一返回包装
 * @author zhangxiaolong
 * @date 2022/7/6 9:36
 */
public abstract class AbstractResponse {

	protected  Object data;
	protected int level;
	protected int code;
	protected String msg = "操作成功";
	protected long systemTime = System.currentTimeMillis();

	public AbstractResponse(Object data, int level, int code, String msg) {
		this.data = data;
		this.level = level;
		this.code = code;
		this.msg = msg;
	}

	public AbstractResponse() {
	}


	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public final long getSystemTime(){
		return this.systemTime;
	}
	
}
